package edu.uic.cs.i422.s2011.team4;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;

public class TreeObservation extends Activity implements OnClickListener {
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		  
		      View inflatedView = View.inflate(this, R.layout.trees, null);
		        SquirrelUIGenerator squirrel = new SquirrelUIGenerator(this);
		        squirrel.setTitle(R.string.treeTitle);
		        squirrel.setHelp(R.string.treeHelp);
		        squirrel.setBreadCrumb(R.string.treeBreadCrumb);
		        LinearLayout layout = new LinearLayout(this);
		        layout.setOrientation(LinearLayout.VERTICAL); //Set Orientation
		        layout.addView(squirrel.getHeader());
		        layout.addView(inflatedView);
		        setContentView(layout);
		        
		        final  Button doneButton = (Button) findViewById(R.id.tree_done);

				doneButton.setOnClickListener(this);

    }

	public void onClick(View v) {
		
	    	finish();
	
		
	}
	
}
